Mavlink: GLOBAL_POSITION for aux positioning#26307
Merged
Conversation
74a42c0 to
c98fe20
Compare
c98fe20 to
0037c59
Compare
0037c59 to
22dd6d5
Compare
- Add handler for incoming GLOBAL_POSITION MAVLink messages - Publish received positions to aux_global_position uORB topic - Update GLOBAL_POSITION stream to use aux_global_position topic
5cbb17d to
1ad8cf5
Compare
🔎 FLASH Analysispx4_fmu-v5x [Total VM Diff: 888 byte (0.04 %)]px4_fmu-v6x [Total VM Diff: 880 byte (0.05 %)]Updated: 2026-02-27T06:59:09 |
sfuhrer
reviewed
Feb 26, 2026
sfuhrer
approved these changes
Feb 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR is part of the split up of #26151
Solved Problem
There was no MAVLink interface to inject auxiliary global position data into PX4. External systems using MAVLink (instead of ROS2/DDS) could not provide alternative positioning sources for EKF2 fusion.
Solution
This PR adds MAVLink GLOBAL_POSITION_SENSOR message support (see mavlink/mavlink#2422, mavlink/mavlink#2423):
Incoming message handler (
mavlink_receiver.cpp)GLOBAL_POSITION_SENSORMAVLink message toaux_global_positionuORB topicidandsourcefields for multi-instance supportPublicationMultifor multi-instance routingOutgoing stream (
streams/GLOBAL_POSITION_SENSOR.hpp)aux_global_positionuORB topic asGLOBAL_POSITION_SENSORMAVLink messageSubscriptionMultiArrayMAVLink submodule update
common.xmlChangelog Entry
For release notes:
Test coverage
Tested by sending GLOBAL_POSITION_SENSOR messages via MAVLink and verifying they appear on the
aux_global_positionuORB topic.